Optimal. Leaf size=281 \[ \frac {\left (2 a^2-5 b^2\right ) F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{3 a^2 d \left (a^2-b^2\right )}+\frac {b^2 \sin (c+d x)}{a d \left (a^2-b^2\right ) \cos ^{\frac {3}{2}}(c+d x) (a+b \cos (c+d x))}+\frac {\left (2 a^2-5 b^2\right ) \sin (c+d x)}{3 a^2 d \left (a^2-b^2\right ) \cos ^{\frac {3}{2}}(c+d x)}+\frac {b \left (4 a^2-5 b^2\right ) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{a^3 d \left (a^2-b^2\right )}+\frac {b^2 \left (7 a^2-5 b^2\right ) \Pi \left (\frac {2 b}{a+b};\left .\frac {1}{2} (c+d x)\right |2\right )}{a^3 d (a-b) (a+b)^2}-\frac {b \left (4 a^2-5 b^2\right ) \sin (c+d x)}{a^3 d \left (a^2-b^2\right ) \sqrt {\cos (c+d x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 1.00, antiderivative size = 281, normalized size of antiderivative = 1.00, number of steps used = 8, number of rules used = 7, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.304, Rules used = {2802, 3055, 3059, 2639, 3002, 2641, 2805} \[ \frac {\left (2 a^2-5 b^2\right ) F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{3 a^2 d \left (a^2-b^2\right )}+\frac {b \left (4 a^2-5 b^2\right ) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{a^3 d \left (a^2-b^2\right )}+\frac {b^2 \left (7 a^2-5 b^2\right ) \Pi \left (\frac {2 b}{a+b};\left .\frac {1}{2} (c+d x)\right |2\right )}{a^3 d (a-b) (a+b)^2}+\frac {b^2 \sin (c+d x)}{a d \left (a^2-b^2\right ) \cos ^{\frac {3}{2}}(c+d x) (a+b \cos (c+d x))}+\frac {\left (2 a^2-5 b^2\right ) \sin (c+d x)}{3 a^2 d \left (a^2-b^2\right ) \cos ^{\frac {3}{2}}(c+d x)}-\frac {b \left (4 a^2-5 b^2\right ) \sin (c+d x)}{a^3 d \left (a^2-b^2\right ) \sqrt {\cos (c+d x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2639
Rule 2641
Rule 2802
Rule 2805
Rule 3002
Rule 3055
Rule 3059
Rubi steps
\begin {align*} \int \frac {1}{\cos ^{\frac {5}{2}}(c+d x) (a+b \cos (c+d x))^2} \, dx &=\frac {b^2 \sin (c+d x)}{a \left (a^2-b^2\right ) d \cos ^{\frac {3}{2}}(c+d x) (a+b \cos (c+d x))}+\frac {\int \frac {\frac {1}{2} \left (2 a^2-5 b^2\right )-a b \cos (c+d x)+\frac {3}{2} b^2 \cos ^2(c+d x)}{\cos ^{\frac {5}{2}}(c+d x) (a+b \cos (c+d x))} \, dx}{a \left (a^2-b^2\right )}\\ &=\frac {\left (2 a^2-5 b^2\right ) \sin (c+d x)}{3 a^2 \left (a^2-b^2\right ) d \cos ^{\frac {3}{2}}(c+d x)}+\frac {b^2 \sin (c+d x)}{a \left (a^2-b^2\right ) d \cos ^{\frac {3}{2}}(c+d x) (a+b \cos (c+d x))}+\frac {2 \int \frac {-\frac {3}{4} b \left (4 a^2-5 b^2\right )+\frac {1}{2} a \left (a^2+2 b^2\right ) \cos (c+d x)+\frac {1}{4} b \left (2 a^2-5 b^2\right ) \cos ^2(c+d x)}{\cos ^{\frac {3}{2}}(c+d x) (a+b \cos (c+d x))} \, dx}{3 a^2 \left (a^2-b^2\right )}\\ &=\frac {\left (2 a^2-5 b^2\right ) \sin (c+d x)}{3 a^2 \left (a^2-b^2\right ) d \cos ^{\frac {3}{2}}(c+d x)}-\frac {b \left (4 a^2-5 b^2\right ) \sin (c+d x)}{a^3 \left (a^2-b^2\right ) d \sqrt {\cos (c+d x)}}+\frac {b^2 \sin (c+d x)}{a \left (a^2-b^2\right ) d \cos ^{\frac {3}{2}}(c+d x) (a+b \cos (c+d x))}+\frac {4 \int \frac {\frac {1}{8} \left (2 a^4+16 a^2 b^2-15 b^4\right )+\frac {1}{4} a b \left (7 a^2-10 b^2\right ) \cos (c+d x)+\frac {3}{8} b^2 \left (4 a^2-5 b^2\right ) \cos ^2(c+d x)}{\sqrt {\cos (c+d x)} (a+b \cos (c+d x))} \, dx}{3 a^3 \left (a^2-b^2\right )}\\ &=\frac {\left (2 a^2-5 b^2\right ) \sin (c+d x)}{3 a^2 \left (a^2-b^2\right ) d \cos ^{\frac {3}{2}}(c+d x)}-\frac {b \left (4 a^2-5 b^2\right ) \sin (c+d x)}{a^3 \left (a^2-b^2\right ) d \sqrt {\cos (c+d x)}}+\frac {b^2 \sin (c+d x)}{a \left (a^2-b^2\right ) d \cos ^{\frac {3}{2}}(c+d x) (a+b \cos (c+d x))}-\frac {4 \int \frac {-\frac {1}{8} b \left (2 a^4+16 a^2 b^2-15 b^4\right )-\frac {1}{8} a b^2 \left (2 a^2-5 b^2\right ) \cos (c+d x)}{\sqrt {\cos (c+d x)} (a+b \cos (c+d x))} \, dx}{3 a^3 b \left (a^2-b^2\right )}+\frac {\left (b \left (4 a^2-5 b^2\right )\right ) \int \sqrt {\cos (c+d x)} \, dx}{2 a^3 \left (a^2-b^2\right )}\\ &=\frac {b \left (4 a^2-5 b^2\right ) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{a^3 \left (a^2-b^2\right ) d}+\frac {\left (2 a^2-5 b^2\right ) \sin (c+d x)}{3 a^2 \left (a^2-b^2\right ) d \cos ^{\frac {3}{2}}(c+d x)}-\frac {b \left (4 a^2-5 b^2\right ) \sin (c+d x)}{a^3 \left (a^2-b^2\right ) d \sqrt {\cos (c+d x)}}+\frac {b^2 \sin (c+d x)}{a \left (a^2-b^2\right ) d \cos ^{\frac {3}{2}}(c+d x) (a+b \cos (c+d x))}+\frac {\left (2 a^2-5 b^2\right ) \int \frac {1}{\sqrt {\cos (c+d x)}} \, dx}{6 a^2 \left (a^2-b^2\right )}+\frac {\left (b^2 \left (7 a^2-5 b^2\right )\right ) \int \frac {1}{\sqrt {\cos (c+d x)} (a+b \cos (c+d x))} \, dx}{2 a^3 \left (a^2-b^2\right )}\\ &=\frac {b \left (4 a^2-5 b^2\right ) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{a^3 \left (a^2-b^2\right ) d}+\frac {\left (2 a^2-5 b^2\right ) F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{3 a^2 \left (a^2-b^2\right ) d}+\frac {b^2 \left (7 a^2-5 b^2\right ) \Pi \left (\frac {2 b}{a+b};\left .\frac {1}{2} (c+d x)\right |2\right )}{a^3 (a-b) (a+b)^2 d}+\frac {\left (2 a^2-5 b^2\right ) \sin (c+d x)}{3 a^2 \left (a^2-b^2\right ) d \cos ^{\frac {3}{2}}(c+d x)}-\frac {b \left (4 a^2-5 b^2\right ) \sin (c+d x)}{a^3 \left (a^2-b^2\right ) d \sqrt {\cos (c+d x)}}+\frac {b^2 \sin (c+d x)}{a \left (a^2-b^2\right ) d \cos ^{\frac {3}{2}}(c+d x) (a+b \cos (c+d x))}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 3.57, size = 294, normalized size = 1.05 \[ \frac {4 \sqrt {\cos (c+d x)} \left (\frac {3 b^4 \sin (c+d x)}{\left (a^2-b^2\right ) (a+b \cos (c+d x))}+2 \tan (c+d x) (a \sec (c+d x)-6 b)\right )+\frac {\frac {8 \left (7 a^3-10 a b^2\right ) \left ((a+b) F\left (\left .\frac {1}{2} (c+d x)\right |2\right )-a \Pi \left (\frac {2 b}{a+b};\left .\frac {1}{2} (c+d x)\right |2\right )\right )}{a+b}+\frac {6 \left (4 a^2-5 b^2\right ) \sin (c+d x) \left (\left (b^2-2 a^2\right ) \Pi \left (-\frac {b}{a};\left .\sin ^{-1}\left (\sqrt {\cos (c+d x)}\right )\right |-1\right )+2 a (a+b) F\left (\left .\sin ^{-1}\left (\sqrt {\cos (c+d x)}\right )\right |-1\right )-2 a b E\left (\left .\sin ^{-1}\left (\sqrt {\cos (c+d x)}\right )\right |-1\right )\right )}{a \sqrt {\sin ^2(c+d x)}}+\frac {2 \left (4 a^4+44 a^2 b^2-45 b^4\right ) \Pi \left (\frac {2 b}{a+b};\left .\frac {1}{2} (c+d x)\right |2\right )}{a+b}}{(a-b) (a+b)}}{12 a^3 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{{\left (b \cos \left (d x + c\right ) + a\right )}^{2} \cos \left (d x + c\right )^{\frac {5}{2}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 3.36, size = 1008, normalized size = 3.59 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \frac {1}{{\cos \left (c+d\,x\right )}^{5/2}\,{\left (a+b\,\cos \left (c+d\,x\right )\right )}^2} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________